
from . import views
from django.conf.urls import url
from rest_framework.routers import DefaultRouter

toter = DefaultRouter()
toter.register('nav',views.NavView)
toter.register('Ficdetail',views.FicView)
toter.register('detailtext',views.Detailtext)


urlpatterns =[
 url(r'^fic/(?P<pk>\d+)$',views.FictionView.as_view()),
 url(r'zhangjie/(?P<pk>\d+)',views.ZhangjieView.as_view()),
 url(r'new_istop/$',views.NewistopView.as_view()),
 url(r'searchs/(?P<search>\w+)/$',views.SearchView.as_view()),
 url(r'allfic/$',views.allficView.as_view())

]
urlpatterns+=toter.urls